package com.ktwlrj.securitycenter.controller.args;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;

import com.ktwlrj.core.validation.group.Update;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 业务放行
 *
 * @author lisc
 * @since 2020-02-24 18:08:13
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode
@ApiModel(value = "业务放行添加或修改Request", description = "业务放行添加或修改入参")
public class SafePassArgs implements Serializable {
	private static final long serialVersionUID = 933701210260949059L;

	@ApiModelProperty(name = "passId", value = "主键id")
	@NotBlank(message = "主键id不能为空", groups = Update.class)
	private String passId;

	@ApiModelProperty(name = "passCode", value = "放行编号")
	private String passCode;

	@ApiModelProperty(name = "ruleCode", value = "规则 编号")
	private String ruleCode;

	@ApiModelProperty(name = "ruleName", value = "规则名称")
	private String ruleName;

	@ApiModelProperty(name = "regionCode", value = "区域编号")
	private String regionCode;

	@ApiModelProperty(name = "regionName", value = "区域名称")
	private String regionName;

	@ApiModelProperty(name = "remark", value = "备注")
	private String remark;

	@ApiModelProperty(value = "业务放行类型（1=新建,2=变更）", hidden = true)
	private Integer passType;
}